--游戏主持人
module("Module.GameModule.SBGameHost", package.seeall)
local SAIBAOGameWin= require("UI.Windows.SAIBAOGameWin").SAIBAOGameWin

SBGameHost = {}

SBGameHost.name="sb"


--销毁游戏
function SBGameHost:Destroy()
 
end

 
function SBGameHost:JoinJbSm(JoinJbSm, isOffline)
	--JoinJbSm.startTime
	Debug.log("---------SBGameHost----------------- ")
	local UIWinMgr = require("UI.UIWinMgr").UIWinMgr
	UIWinMgr:CloseMask()
 
	PaiWin = UIWinMgr:OpenWindow("SAIBAOGameWin")
 
	 SAIBAOGameWin:TableInfoRes(JoinJbSm)
end

 
function  SBGameHost:TableStateCast(data)
	--牌桌状态变化
	 SAIBAOGameWin:TableStateCast(data.tableStatus,data.countdown,true)
end


function  SBGameHost:ResultCast(data)
    --牌桌状态
	 print("---ResultCast 结果广播----"..data.playType)
	--  print("---牌桌状态----"..data.result)
	--  print("---状态时间----"..data.status)
	--  print("---牌桌状态----"..data.balance)
	--  print("---状态时间----"..data.winLoss)
	SAIBAOGameWin:ResultCast(data)
 
end

--下注广播
function  SBGameHost:BetCast(data)
	print("---收到玩家下注----")
	SAIBAOGameWin:BetCast(data)
end

 


---